package jwj8508.swing;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

public class SwingMenuActionListener implements ActionListener {
	
	public SwingMenuActionListener() {		
	}
	@Override
	public void actionPerformed(ActionEvent e) {		
		
		switch (e.getActionCommand()) {
		case "new" :
			JOptionPane.showMessageDialog(null, "뉴우뉴우뉴루루루", "new 메뉴", JOptionPane.QUESTION_MESSAGE);
			break;
		case "open" :
			JOptionPane.showMessageDialog(null, "오픈더도어", "open 메뉴", JOptionPane.WARNING_MESSAGE);
			break;
		case "close" :
			JOptionPane.showMessageDialog(null, "닫힌다", "open 메뉴", JOptionPane.WARNING_MESSAGE);
			break;
		case "save" :
			JOptionPane.showMessageDialog(null, "저장저장", "save 메뉴", JOptionPane.QUESTION_MESSAGE);
			break;
		case "plane" :
			new SwingAboutDialog();
			break;
		case "exit" :
			System.exit(0); break;
		}
		
	}

}
